package com.wwz.frame.event;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
* @Description 事务监听 方式二
* @Author wwz
* @Date 2019/08/26
* @Param
* @Return
*/
@Component
@Slf4j
public class SaveEvent2Listener implements ApplicationListener<SaveEvent> {
    @Override
    public void onApplicationEvent(SaveEvent saveEvent) {
        log.info("SaveEvent2Listener" + saveEvent.getObject());
    }
}
